package com.guan.ordering_sys.generator.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guan.ordering_sys.generator.entity.OrderDetail;
import com.guan.ordering_sys.generator.mapper.OrderDetailMapper;
import com.guan.ordering_sys.generator.service.OrderDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guan.ordering_sys.vo.OrderDetailVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 韩思琪
 * @since 2021-06-18
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Autowired
    OrderDetailMapper orderDetailMapper;
    @Override
    public IPage<OrderDetailVo> orderDetailList(Page<OrderDetailVo> orderDetailVoPage, int orderId) {
        IPage<OrderDetailVo> OrderDetailVoIPage = orderDetailMapper.selectOrderDeatilList(orderDetailVoPage,orderId);
        return OrderDetailVoIPage;
    }
}
